import request from '@/utils/request'

// 查询专业科目列表
export function listSpecializedSubjects(query) {
  return request({
    url: '/system/specializedSubjects/list',
    method: 'get',
    params: query
  })
}

// 查询专业科目详细
export function getSpecializedSubjects(specialtyId) {
  return request({
    url: '/system/specializedSubjects/' + specialtyId,
    method: 'get'
  })
}

// 新增专业科目
export function addSpecializedSubjects(data) {
  return request({
    url: '/system/specializedSubjects',
    method: 'post',
    data: data
  })
}

// 修改专业科目
export function updateSpecializedSubjects(data) {
  return request({
    url: '/system/specializedSubjects',
    method: 'put',
    data: data
  })
}

// 删除专业科目
export function delSpecializedSubjects(specialtyId) {
  return request({
    url: '/system/specializedSubjects/' + specialtyId,
    method: 'delete'
  })
}
